<template>
	<view class="">
		<rich-text :nodes="bio"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				bio: ''
			}
		},
		onLoad(options) {
			this.bio = this.$store.state.introduce.storeInfo.bio.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, (
				match, capture) => {
				var img = `<img style="display: block; width: 100%;" src="${capture}">`;
				return img;
			});
		}
	}
</script>

<style scoped lang="scss">

</style>
